package com.itheima.client;

import com.itheima.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description UserClient
 * @Author junjie Wu 吴俊杰
 * @Date 2024-03-15
 */
@FeignClient(value = "itheima-user") //被调用的服务名
public interface UserClient {
   @GetMapping("/user/{id}")
   User one(@PathVariable(value = "id") Long id);
}
